Skip to content

Add FileIO.list_prefix - #3974

Open
rambleraptor wants to merge 2 commits into
apache:mainfrom
rambleraptor:fileio-list-prefix
Open

rambleraptor wants to merge 2 commits into
apache:mainfrom
rambleraptor:fileio-list-prefix

Conversation

@rambleraptor

@rambleraptor rambleraptor commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Rationale for this change

We've had a lot of interest in #3361. I'm attempting to split that into some smaller PRs to make it easier for everyone.

This PR adds a list_prefix method to FileIO, which doesn't have any list methods so far. This is crucial for DeleteOrphanFiles (and probably other maintenance methods)

Are these changes tested?

Includes unit tests.

Are there any user-facing changes?

Recursively list files under a location, with size and modification time,
for the PyArrow and fsspec backends. Needed by maintenance actions such as
removing orphan files, which compare storage against table metadata, so
listed locations keep the scheme and authority recorded in that metadata.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant